class Solution
{
public:
    vector<vector<int>> rangeAddQueries(int n, vector<vector<int>> &queries)
    {
    }

    // 暴力，超时
    vector<vector<int>> rangeAddQueries(int n, vector<vector<int>> &queries)
    {
        vector<vector<int>> result(n, vector<int>(n, 0));
        for (auto query : queries)
        {
            for (int i = query[0]; i <= query[2]; ++i)
            {
                for (int j = query[1]; j <= query[3]; ++j)
                {
                    result[i][j] += 1;
                }
            }
        }
        return result;
    }
};